package com.neusoft.mapper;

import com.neusoft.pojo.SysEmailInbox;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SysEmailBoxMapper {

    //@Select("select * from sys_email_inbox")
    java.util.List<SysEmailInbox> sysEmailInboxList(SysEmailInbox sysEmailInbox);

    //@Delete
    int sysEmailInboxDelete(int dno);

    //@查询垃圾箱中的邮件
    java.util.List<SysEmailInbox> sysEmailTrashList(SysEmailInbox sysEmailInbox);

    //@restore还原垃圾箱中的邮件\
    int sysEmailrestore(int res);

    //@add加入一封新的邮件
    int sysEmailadd(SysEmailInbox sysEmailInbox);

    //@saveEdit保存编辑好的新邮件
    int saveEdit(SysEmailInbox sysEmailInbox);

    //@check查看一封具体的邮件信息
    int sysEmailcheck(int id);

    //@Select_check("select * from sys_email_inbox")
    java.util.List<SysEmailInbox> sysEmailInboxList_check();

    //@update还原邮件查看的状态
    int sysEmailcheck_over();
}
